package org.dairy.farms.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;

/**
 * Created by IntelliJ IDEA.
 * User: GDuggira
 * Date: 27 Jun, 2012
 * Time: 7:08:54 PM
 */
@Entity
@PrimaryKeyJoinColumn(name="ID")
public class CheckupNotes extends Notes{

    @ManyToOne(optional = true)
    private Checkup checkup;

    public Checkup getCheckup() {
        return checkup;
    }

    public void setCheckup(Checkup checkup) {
        this.checkup = checkup;
    }
}
